package com.charger.PromoteOperations.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 邀请管理对象 invite
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
public class Invite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String invitenumber;

    /** 生成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date generateTime;

    /** 客户外键 */
    private Long clientId;

    /** 邀请收益 */
    @Excel(name = "邀请收益")
    private String inviteMoney;

    /** 客户 */
    @TableField(exist = false)
    private Client client;

    @TableField(exist = false)
    private List<Newclient> newclients;

    @TableField(exist = false)
    private List<Long> newInviteId;

    public List<Long> getNewInviteId() {
        return newInviteId;
    }

    public void setNewInviteId(List<Long> newInviteId) {
        this.newInviteId = newInviteId;
    }

    public List<Newclient> getNewclients() {
        return newclients;
    }

    public void setNewclients(List<Newclient> newclients) {
        this.newclients = newclients;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInvitenumber(String invitenumber) 
    {
        this.invitenumber = invitenumber;
    }

    public String getInvitenumber() 
    {
        return invitenumber;
    }
    public void setGenerateTime(Date generateTime) 
    {
        this.generateTime = generateTime;
    }

    public Date getGenerateTime() 
    {
        return generateTime;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setInviteMoney(String inviteMoney) 
    {
        this.inviteMoney = inviteMoney;
    }

    public String getInviteMoney() 
    {
        return inviteMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("invitenumber", getInvitenumber())
            .append("generateTime", getGenerateTime())
            .append("clientId", getClientId())
            .append("inviteMoney", getInviteMoney())
            .toString();
    }
}
